require 'tk'

root = TkRoot.new(title:"Frame Test")
root.configure(geometry:"200x100",bd:2)

TkLabel.new{
	text "hello frames"
	pack side:"top",fill:"y",pady:2
}

TkFrame.new(root){
	bg 'red'
	pack padx:50,side:'left',fill:"y"
}
TkFrame.new(root){
	bg 'blue'
	pack ipadx:50,side:'right',fill:"y"
}

Tk.mainloop